﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using MiniErp.Service.MysqlService.IService.AssetManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MiniErp.Core.Controllers.AssetManagement
{
    /// <summary>
    /// 资产管理系统记录控制层
    /// </summary>
    [Route("AssetManagementRecord")]
    public class AssetRecordController : ApiControllers
    {
        private readonly IAssetRecordService _assetRecordService;
        public AssetRecordController(IAssetRecordService assetRecordService)
        {
            _assetRecordService = assetRecordService;
        }

        
        [Authorize(Policy = "Admin")]
        [HttpPost]
        [Route("AddAssetInfo")]
        public Task<bool> AddAssetInfo()
        {
            throw new Exception();
        }
    }
}
